new Vue({
    el:"#app",
    data:{
        arr:[
            {
                name:'打篮球',
                statr:true
            },
            {
                name:'踢足球',
                statr:false
            },
            {
                name:'打乒乓',
                statr:true
            },
            {
                name:'看电视',
                statr:false
            },
            {
                name:'打游戏',
                statr:false
            },
        ],
    },
    methods: {
        cli(index){
            alert(this.arr[index].name)
        },
    }
})


 new Vue({
     el:"#app1",
     data:{
         message:['ccccc'],
         text:''
     },
     methods: {
         add(){
             if(this.text!=""){
                 this.message.push(this.text);
             }
         }
     }
 })